/**
 * 导航标签
 */
import { useTab } from "@/store/tab";
import { computed } from "vue";

export default function () {
  const tabStore = useTab();

  const currentTab = computed(() => tabStore.currentTab);
  const tabList = computed(() => tabStore.tabList);

  const changeTab = (route) => tabStore.changeTab(route);
  const deleteTag = (path) => tabStore.deleteTag(path);

  return {
    currentTab,
    tabList,
    changeTab,
    deleteTag
  };
}
